/*主页样式*/
body {
  user-select: none;
}

.index {
  padding-bottom: 60px;
}

.card-wrapper {
  transition: all;
  transition-duration: 300ms;
  width: 720px;
  max-width: 90%;
  margin: 0 auto;
  border-radius: 5px;
  overflow: hidden;
}

.card .ant-card-body {
  padding: 0 !important;
}

.card .ant-tabs-tab {
  margin: 0 16px;
}

.card .ant-card-grid {
  float: left;
}

.site-title {
  font-size: 18px;
  display: inline-block;
  vertical-align: middle;
  color: #fff;
  letter-spacing: 1px;
}

.search-all-switch {
  cursor: pointer;
  border-radius: 5px;
}

.search-all-switch.close, .search-all-switch:hover {
  filter: grayscale(1);
}

.search-all-switch, .search-all-switch.close:hover {
  filter: none;
}

.search-logo {
  width: 210px;
  cursor: pointer;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.1);
  padding: 16px;
  box-sizing: content-box !important;
}

.search-logo:hover {
  opacity: 0.7;
}

.search-wrapper {
  width: 640px;
  max-width: 90%;
  margin: 0 auto 70px;
}

.search .ant-input {
  font-size: 16px;
  line-height: 2 !important;
}

.search .anticon-search {
  font-size: 21px;
}

.search .ant-input-affix-wrapper {
  border-top-left-radius: 5px !important;
  border-bottom-left-radius: 5px !important;
}

.search .ant-input-group-addon, .search .ant-input-search-button {
  border-top-right-radius: 5px !important;
  border-bottom-right-radius: 5px !important;
}

.search .ant-input {
  color: #333;
  letter-spacing: 1px;
}

.search .ant-input-search-button {
  height: 47px !important;
  width: 64px;
}

.ant-card-grid:hover .resource-name {
  color: #1890ff;
}

.resource-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: 8px;
}

.bg {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  float: left;
  border: 0;
  overflow: hidden;
  z-index: -100;
}

.fix-group {
  position: fixed !important;
  bottom: 16px;
  right: 16px;
}

.ant-drawer .ant-drawer-content {
  background: none;
}

.ant-drawer-close {
  color: #fff !important;
  font-size: 18px !important;
  line-height: 24px !important;
}

.ant-drawer-close:focus, .ant-drawer-close:hover {
  color: #1890ff !important;
}

::-webkit-scrollbar {
  display: none;
}

.mask {
  position: fixed;
  background: rgba(0, 0, 0, 0.5);
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: -50;
  transition: all;
  transition-duration: 300ms;
}

.hidden {
  visibility: hidden;
  opacity: 0;
}

@media screen and (max-width: 480px) {
  .resource-name {
    display: none;
  }
}
